package com.yunxin.admin.system.infra.framework.security.userdetails;

import com.yunxin.admin.system.infra.framework.security.exception.MobileNotFoundException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * 用户认证信息扩展
 *
 * @author zero°
 * @since 2023-05-22
 */
public interface UserDetailsExternalService extends UserDetailsService {


    /**
     * 根据手机号获取用户详情
     * @param mobile mobile
     * @return UserDetails UserDetails
     * @throws MobileNotFoundException
     */
    UserDetails loadUserByMobile(String mobile) throws MobileNotFoundException;


}
